xen: another unsigned comparison < 0
authorTim Deegan <Tim.Deegan@citrix.com>
Thu, 7 Apr 2011 14:06:06 +0000 (15:06 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Thu, 7 Apr 2011 14:06:06 +0000 (15:06 +0100)
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/unxz.c

index 97d8febf48147c989bd3487bdedc43468255b4a8..132168f9240553c942131b93f220d938fdc547b1 100644 (file)
@@ -216,7 +216,7 @@ STATIC int INIT unxz(unsigned char *in, unsigned int in_size,
                                b.in_pos = 0;
 
                                in_size = fill(in, XZ_IOBUF_SIZE);
-                               if (in_size < 0) {
+                               if ((int) in_size < 0) {
                                        /*
                                         * This isn't an optimal error code
                                         * but it probably isn't worth making